<?php
    /**
     * Created by PhpStorm.
     * User: huangzhongwei
     * Date: 2018/10/27
     * Time: 10:49
     */

    namespace app\api\validate;


    class ReceiverAddress extends BaseValidate
    {
        protected $rule = [
            'harvest_address' => 'require|isNotEmpty',
            'receiver_phone'=>'isMobile',
            'longitude' => 'require|isNotEmpty',
            'latitude' => 'require|isNotEmpty',
            'university_id'=>'require|isPositiveInteger',
            'type'=>'require|in:1,2',
        ];
    }